home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Arsenal - The Cutting Edge of Hacking / Hacker's Arsenal - The Cutting Edge of Hacking.iso / texts / misc / tcpflags.txt < prev    next >
Encoding:
Text File  |  2001-07-11  |  2.6 KB  |  61 lines

  1.  
  2.  ------------------------
  3.  |     TCP/IP Flags     |
  4.  |         by:          |
  5.  |      Neon-Lenz«      |
  6.  ------------------------
  7.  
  8.  
  9.  I wrote this small white paper to introduce you to the flags 
  10.  in TCP headers. I hope you'll gain knowledge from this, and 
  11.  if not.. bad luck ;-) So let's begin :
  12.  
  13.  The TCP-header contains about 6 fields with one bit for flags.
  14.  There are currently 6 flags in a TCP-header and those are :
  15.  
  16.  URG = This flag lets the receiving TCP-module know that the 
  17.        the field of the Urgent Pointer points to urgent data.
  18.        (The TCP-Module needs to process urgent data than any
  19.        other data)
  20.  
  21.  ACK = This flag notes that the field ACK-number has a valid 
  22.        ACK-number. This helps TCP trusting the DATA.
  23.  
  24.  PSH = This flag calls a PUSH. If this flag is on, then the 
  25.        TCP-module has to send the data from the segment directly 
  26.        to the target application. Normally, the TCP-Module would 
  27.        keep the incoming data in a buffer and sends them untill 
  28.        the target application's buffer is full. The PSH-flag lets 
  29.        the TCP-Module know that the data of this segment does not
  30.        have to arrive in the buffer. Telnet-Applications for example 
  31.        uses this flag. Because of that, TCP sends the inputted keys
  32.        of the user directly to the Telnet-server. This lets the user
  33.        see the typed-letters immediately, without lag.
  34.  
  35.  RST = This flag asks the receiving TCP-module to let the connection
  36.        recover (reset). TCP sends a msg with this RST-flag if there
  37.        are any problems detected with the connection. Most of the 
  38.        applications stops when they receive this flag, but it's 
  39.        possible with the help of the RST-flag advanced algorithms
  40.        to write which programs can recover from crashes in hardware 
  41.        or software.
  42.  
  43.  SYN = This flag instructs the receiving TCP-Module to synchronize
  44.        sequence numbers. TCP uses this flag to let the receiving 
  45.        TCP-Module know that the sender wants send new data.
  46.  
  47.  FIN = This flag lets the receiving TCP-Module know that the sender
  48.        is finished with sending of data. This flag stops the data-
  49.        stream in one-way. The receiving TCP-Module has to send a 
  50.        msg with the FIN-flag to close the whole connection.
  51.  
  52.  
  53.  Well that's a short introduction to TCP-Flags, for more information
  54.  i would recommend you to read RFC's, and other TCP/IP related books,
  55.  text-files and documents.
  56.  
  57.  Spreaded by Neon-Lenz« and The Millennium Hackers Association.
  58.  Copyrighted and All Rights Reserved«
  59.  E-Mail:neonlenz@hackermail.net 
  60.  -2000- http://www.mha1.8m.com
  61.